﻿<%@ Import Namespace="AFI.Speargun.Web.Paging" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Department/Department.Master"
    Inherits="System.Web.Mvc.ViewPage<IPagedList<AFI.Speargun.Web.Models.AssetEntry>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    部门 - 列表 -
    <%= Html.Encode(ViewData["Appellation"]) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        列表 -
        <%= Html.Encode(ViewData["Appellation"]) %></h2>
    <ul>
        <li>
            <%= Html.ActionLink("[新建]", "Create", new { id = ViewData["DepartmentId"] })%></li>
        <li>
            <%= Html.ActionLink("[编辑]", "Edit", new { id = ViewData["DepartmentId"] })%></li>
        <li>
            <%= Html.ActionLink("[删除]", "Delete", new { id = ViewData["DepartmentId"] })%></li>
    </ul>
    <div>
        <% Html.RenderPartial("AssetEntryList", Model); %>
    </div>
    <div class="pager">
        <%= Html.Pager(Model.PageSize, Model.PageNumber, Model.TotalItemCount) %>
    </div>
</asp:Content>
